#ifndef PROJECTMODELITEM_H
#define PROJECTMODELITEM_H

#include <defs/export.h>
#include <defs/global.h>

#include <QtCore>

class ProjectItem;
O_PRIVATE_DECLARE(ProjectModelItem);
class ProjectModelItem : public QAbstractItemModel {
    Q_OBJECT
public:
    ProjectModelItem(ProjectItem* item, QObject *parent = 0);
    ~ProjectModelItem();

    int columnCount(const QModelIndex &parent) const;
    Qt::ItemFlags flags(const QModelIndex &index) const;
    QVariant data(const QModelIndex &index, int role) const;
    QVariant headerData(int section, Qt::Orientation orientation, int role) const;
    QModelIndex index(int row, int column, const QModelIndex &parent)const;
    QModelIndex parent(const QModelIndex &index) const;
    int rowCount(const QModelIndex &parent) const;
private:
    O_PRIVATE_DECLARE_MEMBER(ProjectModelItem);
};

#endif // PROJECTMODELITEM_H

